import java.time.LocalTime;
import java.util.Scanner;
class CurrentTime {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        LocalTime now = LocalTime.now();
        System.out.print("请输入秒数：");
        if(sc.hasNextInt()){
            int seconds = sc.nextInt();
            int currentseconds = now.toSecondOfDay();
            int totalseconds = currentseconds + seconds;
            System.out.println(seconds + " 秒后的时间是 " + LocalTime.ofSecondOfDay(totalseconds % 86400));
        } else {
            System.out.println("输入无效，请输入整数。");
        }
        sc.close();
    }
}